<template>
    <div>
        <div class="top1">
        
      </div>
      <div class="top">
     <span class="shop_name">OMINI官方旗舰店</span> 
       <p>店铺总宝贝数量：100 &nbsp;&nbsp;&nbsp;&nbsp; 店长：张晓伟</p>
       <div>
         <div class="find" @click="find">搜索</div>
        </div>
         </div>
        <div class="shop_t" v-for="(item, index) in type" :key="index">
            <div class="type_name">{{item.type_name}}</div>
            <div class="type_b"><span> > </span></div>
        </div>






         <div class="bottom">
      <center>
       
              <div class="bottom_menu" @click="shop_all">
                <p>
                  <img src="http://py9lewv6q.bkt.clouddn.com/images_1571056118全部未选中.png" alt="">
                  </p>
               <p>全部</p> 
                </div>
              <div class="bottom_menu" >
                <p><img src="http://py9lewv6q.bkt.clouddn.com/images_1571277424分类选中.png" alt=""></p>
               <p>分类</p> 
              </div>
              <div class="bottom_menu">
                <p><img src="http://py9lewv6q.bkt.clouddn.com/images_1571142824客服未选中.png" alt=""></p>
               <p>客服</p> 
              </div>
              <div class="bottom_menu4">
                <p><img src="http://py9lewv6q.bkt.clouddn.com/images_1571142856关注未选中.png" alt=""></p>
               <p>关注</p> 
              </div>
</center>
  </div>
    </div>
</template>
<script>
export default {
    data() {
        return {
            type:''
        }
    },
    created(){
    let that=this;
     //分类
     this.$axios({
      url:'http://www.shop.com/index.php/api/user/shop_type?shop_id=1',
      
    })
    .then(function(res){
        console.log(res)
        that.type=res.data
    })
    },
    methods:{
      find(){
         this.$router.push({
               name:'shop_find'
         })
         
    },
    shop_all(){
          this.$router.push({
               name:'shop',
               params:{
                   statu:"second"
               }
         })
        }
}
}
</script>

<style lang="">
.type_name{
   display: inline-block;
   float: left;
   line-height:50px; 
   margin-left: 10px;
   font-weight: bolder;
}
.type_b{
 display: inline-block;
 float: right;
 line-height:50px; 
 font-size: 20px;
    margin-right: 10px;
}
  .top1{
    width: 100%;
    height:100px;
    margin-bottom: 15px;
  }
     .top{
    z-index: 99999;
    width: 100%;
    height:120px;
    margin-bottom: 15px;
    margin-left: 5px;
    position:fixed;top:0px;left:0;
    background:rgb(238, 234, 234);
  }
  .shop_name{
    font-size: 20px;
    font-weight: bolder;
  }
  .find{
    float: left;
    display:inline-block;
    width: 60px;
    height: 40px;
    line-height: 40px;
    padding-left: 30px;
    border:1px solid rgb(240, 135, 135);
    border-radius: 30px;
    color: rgb(240, 135, 135);
  }
   html{
   background:rgb(238, 234, 234);
  }
  .shop_t{
      width: 400px;
      height: 50px;
      background-color: #fff;
      margin-left: 20px;
      margin-top: 28px;
      border-radius: 10px;
  }
  .bottom{
  width: 100%;
  height: 80px;
  background: #fff;
  position:fixed;bottom:0px;left:0;
}
.bottom_menu{
  width: 110px;
  height: 80px;
  display: inline-block;
  border-right:2px solid rgb(205, 205, 211); 
  

}
.bottom_menu4{
  width: 110px;
  height: 80px;
  display: inline-block;
  
  

}
</style>
